#include<string.h>
#include<stdbool.h>
bool areNumbersAscending(char *s)
{
    int len = strlen(s), i = 0, temp = -1, j = 0;
    while (i < len)
    {
        if (s[i] >= '0' && s[i] <= '9')
        {
            int cur = s[i] - '0';
            for (j = i + 1; j < len; j++)
            {
                if (s[j] >= '0' && s[j] <= '9')
                    cur = cur * 10 + s[j] - '0';
                else
                    break;
            }
            if (cur > temp)
            {
                temp = cur;
                i = j;
            }
            else
                return 0;
        }
        else
            i++;
    }
    return 1;
}